package com.csun.cmny.provider.model.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "cn_dmc_csun_humidistat_data")
public class DmcCsunHumidistatData {
    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 温度值 单位-摄氏度
     */
    private String temperature;

    /**
     * 温湿值 单位-百分比
     */
    private String humidity;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    @JsonIgnore
    private Integer count;
}